<template>
  <a-config-provider :theme="theme">
    <slot name="default"></slot>
  </a-config-provider>
</template>

<script setup>
defineOptions({
  name: 'YConfigProvider',
});
import { useThemeStore } from '@/stores/modules/theme';
import { computed } from 'vue';
const themeStore = useThemeStore();
const theme = computed(() => {
  return { ...themeStore.themeConfig };
});
</script>

<style></style>
